package com.objectdraw.server.data;

import java.net.Socket;


/**
 * Wrapper class for client's request
 * @author hgladden
 *
 */
public class RequestData {

	private String command= "";
	private String params = "";
	private Socket client = null;
	public RequestData(){
		
	}
	
	/**
	 * 
	 * @return command string
	 */
	public String getCommand(){
		return command;
	}
	/**
	 * 
	 * @param command set command string
	 */
	public void setCommand(String command){
		this.command = command;
	}
	/**
	 * 
	 * @return parameters string
	 */
	public String getParams(){
		return params;
	}
	/**
	 * 
	 * @param params set parameters string
	 */
	public void setParams(String params){
		this.params = params;
	}
	/**
	 * 
	 * @return clients socket
	 */
	public Socket getClient(){
		return client;
	}
	/**
	 * 
	 * @param client set clients socket
	 */
	public void setClient(Socket client){
		this.client = client;
	}
	/**
	 * returns string format of object.
	 * "Command: " + command string
	 * "Params: " + parameters string
	 */
	public String toString(){
		return "Command: " + command + "\nParams: " + params;
	}
}
